<?php
	session_start();
	require("../inc/functions.php");
	if(!isEmployee())
		header("Location: ../index.php");
	require_once("../inc/models/customer_model.php");
	$results = GetCustomer($_REQUEST['id']);
?>

<!DOCTYPE html>
<html lang="en">
	<?php include('../inc/head.php'); ?>
	<body>
	<?php include('../inc/navigation.php'); ?>
			<div class="span9">
				<div class="row-fluid">
					<h2><?=$results['first_name'] ?> <?=$results['last_name'] ?></h2>
		                	<p><strong>I.D.: </strong><?=$results['id'] ?></p>
		                    <p><strong>First Name: </strong><?=$results['first_name'] ?></p>
		                    <p><strong>Last Name: </strong><?=$results['last_name'] ?></p>
		                    <p><strong>Registered: </strong><?=$results['registered'] ?></p>
		                    <p><strong>Verfication Code: </strong><?=$results['verification_code'] ?></p>
		                    <p><strong>Verified: </strong><?=$results['verified'] ?></p>
		                    <p><strong>Keyword I.D.: </strong><?=$results['Keyword_id'] ?></p>
		                    <?php if($results['updated_at'] != NULL): ?>
		                    <p><strong>Updated At: </strong><?=$results['updated_at'] ?></p>
		                    <?php endif; if($results['updated_at'] == NULL): ?>
		                    	<p><strong>Updated At: </strong>Customer Never Updated</p>
		                    <?php endif; ?>
		                    
				</div>
			</div>
		</div>
	</div>
	
	<!-- All Bootstrap JavaScript Files -->
	<script src="../inc/bootstrap/js/jquery.js"></script>
    <script src="../inc/bootstrap/js/bootstrap.js"></script>
	
	</body>
</html>
